package com.doit.day05

object _11_视图限定 {
  def main(args: Array[String]): Unit = {
    def bitBird[T <% Bird](bird:Bird)={
      println("打鸟，鸟飞走了")
    }

    val bird: Bird = new Bird
    val toyBird: ToyBird = new ToyBird

    implicit def toyBird2Bird(toyBird:Int)={
      new Bird
    }

    bitBird(1)



  }
}
class Bird(){

}

class ToyBird(){

}